package com.zkk.service.impl;

import com.zkk.dao.AdminDao;
import com.zkk.dao.impl.AdminDaoImpl;
import com.zkk.pojo.Admin;
import com.zkk.service.AdminService;

import java.util.List;

public class AdminServiceImpl implements AdminService {
    private AdminDao adminDao = (AdminDao) new AdminDaoImpl();
    @Override
    public Admin login(Admin admin) {

        return adminDao.login(admin);
    }

    @Override
    public List<Admin> findAll() {

        return adminDao.findAll();
    }
}
